<!--<?php
switch($action){
	case "":
print <<<EOT
-->
<div class="position"><span>当前位置:</span> {$_SYS['positionindex']} » <a href="credits.php">系统积分/用户组/权限</a></div>
<div class="div_out">
<div class="member_creditsdiv">总积分 = {$creditsexp}</div>
<table class="member_grouptable">
	<thead><tr><td>用户组</td><td>类型</td><td>等级</td><td>总积分要求</td><td>权限</td></tr></thead>
	<tbody>
<!--
EOT;
foreach($rows_groups as $grouprow){
	if(empty($grouprow['groupname'])){
		continue;
	}
print <<<EOT
-->
	<tr class="{$grouprow['trclass']}"><td class="groupname">{$grouprow['groupname']}</td><td class="grouptype">{$grouprow['grouptype']}</td><td class="groupstar"><u class="star_img" title="{$grouprow['groupname']}">{$grouprow['starimg']}</u></td><td class="groupmarkrange">{$grouprow['markrange']}</td><td class="grouplink">{$grouprow['popedomlink']}</td></tr>
<!--
EOT;
}
print <<<EOT
-->
	</tbody>
</table>
</div>
<!--
EOT;
break;
	case "popedom":
print <<<EOT
-->
<div class="position"><span>当前位置:</span> {$_SYS['positionindex']} » <a href="credits.php">系统积分/用户组/权限</a> » <a href="credits.php?action={$action}&groupid={$groupid}">用户组({$cache_groups[$groupid]['groupname']})的权限</a></div>
<div class="div_out">
<div class="member_title">用户组({$cache_groups[$groupid]['groupname']})的权限</div>
<table class="member_popedomtable">
	<thead><td>权限</td><td></td></thead>
	<tbody>
<!--
EOT;
foreach($pstr as $key=>$p){
if(empty($p))continue;
print <<<EOT
-->
<tr><td>{$p}</td><td>{$ps[$key]}</td></tr>
<!--
EOT;
}
print <<<EOT
-->
	</tbody>
</table>
</div>
<!--
EOT;
break;
}
?>
-->